package com.zhuoli.service.springboot.mybatis.rowbounds.repository.service;

import com.zhuoli.service.springboot.mybatis.rowbounds.repository.model.User;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @Author: zhuoli
 * @Date: 2018/8/2 10:57
 * @Description:
 */
public interface UserRepository {
    List<User> getAllUsers();

    List<User> getUserByRowBounds(String userName, String description, RowBounds rowBounds);

    User getUserById(Long id);

    int delUserById(Long id);

    int createUser(User user);

    int updateUser(User user);
}
